package com.yumi.shizhan;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class InkTest {
    @Test
    public void testInk() {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        Entity entity = (Entity) context.getBean("ink1");
        InkService inkService = (InkService) context.getBean("inkService");
        inkService.serve(entity);
    }
}
